home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / fortran / fatdos.zip / FATD3.DOC < prev    next >
Text File  |  1988-04-15  |  4KB  |  165 lines

  1.     FAT-DOS            ISEMM            PAGE K-1
  2.  
  3.  
  4.     ISEMM - Determines wheter of not the EMM manager(device driver) is 
  5.          present.
  6.  
  7.     integer*2 Status
  8.     call isEMM(Status)
  9.     
  10.     call with:
  11.     nothing.
  12.     
  13.     returns:
  14.     Status    = 0  EMM manager is not installed.
  15.               -1 Emm manager is installed.
  16.  
  17.     EMMGMS - Get EMM manager status. Use this before doing any other EMM work.
  18.    
  19.     integer*2 Status
  20.     call EMMGMS(Status)
  21.     
  22.     call with:
  23.     nothing.
  24.     
  25.     returns:
  26.     Status    = 0   EMM manager is o.k. to use.
  27.               128 internal EMM software error.
  28.           129 hardware error
  29.  
  30.     EMMGPF - Get the EMM page frame segment address. 
  31.    
  32.     integer*2 PFSeg,Ier
  33.     call EMMgpf(PFSeg,Ier)
  34.     
  35.     call with:
  36.     nothing.
  37.     
  38.     returns:
  39.     PFSeg    = Segment address of page frame.
  40.     Ier    = error code
  41.                   0   normal return, EMM is alright.
  42.           128 EMM internal error.
  43.           129 EMM hardware error.
  44.           132 function undefined.
  45.  
  46.     FAT-DOS 1.0            EMMGNP            PAGE K-2
  47.  
  48.  
  49.     EMMGNP - Get the total number of logical pages in expanded memory, and
  50.             the nmber of unallocated pages.
  51.  
  52.     integer*2 Free,Total,Ier
  53.     call EMMgnp(Free,Total,Ier)
  54.     
  55.     call with:
  56.     nothing.
  57.     
  58.     returns:
  59.     Free    = Number of unallocated pages.
  60.     Total    = Total number of expaned memory pages in system.
  61.     Ier    = error code
  62.               0   normal return, EMM is o.k.
  63.           128 EMM software error.
  64.           129 EMM hardware error.
  65.           132 function invalid.
  66.  
  67.  
  68.  
  69.     EMMGHA - Get an EMM handle and allocate expanded memory as 16k logical 
  70.             pages.
  71.  
  72.     integer*2 Npages,Handle,Ier
  73.     call EMMgha(Npages,Handle,Ier)
  74.     
  75.     call with:
  76.     Npages    = Number of 16k pages desired.
  77.     
  78.     returns:
  79.     Handle    = Epanded memory page handle.
  80.     Ier    = Error Code
  81.               0 normal return, EMM is o.k.
  82.           80h EMM software error
  83.           81h EMM hardware error
  84.           84h EMM function invalid
  85.                   85H EMM handle not available
  86.           87h EMM request for more pages than physically exist. 
  87.               Non allocated
  88.           88h EMM request for more pages than are available.
  89.               Non allocated
  90.           89h EMM zero pages requested.
  91.     FAT-DOS 1.0            EMMMAP            PAGE K-3
  92.  
  93.  
  94.  
  95.     EMMMAP - Map physical pages in the Page Frame Segment to logical pages
  96.             in Expanded Memory. Once the Physical/Logical mapping has
  97.         been established yoy need only write to the physical pages,
  98.         and the data is automatically moved to expanded memory.
  99.  
  100.     integer*2 PhysPage,LogPage,Handle,Ier
  101.     call EMMmap(PhysPage,LogPage,Handle,Ier)
  102.     
  103.     call with:
  104.     PhysPage= Physical Page from Page Fram Segment to map into
  105.               LogPage, 0-3
  106.     LogPage    = Logical Page in expanded memory to map into PhysPage.
  107.         Handle    = Handle of previously
  108.     
  109.     returns:
  110.     Ier    = 0 normal return
  111.          = 80H=128 internal EMM software error
  112.            81H=129 hardware error
  113.            84h=132 function not defined
  114.            83h     invalid handle
  115.            8ah     page not in range of handle.
  116.                8bh     Physical page not in range 0-3.
  117.  
  118.  
  119.  
  120.     EMMRHM - Release Handle an Memory associated with that handle.
  121.    
  122.     integer*2 Handle,Ier
  123.     call EMMrhm(Handle,Ier)
  124.     
  125.     call with:
  126.     Handle    = EMM handle from previous call to EMMgha().
  127.     
  128.     returns:
  129.     Ier    =  0  normal return, memory & handle released.
  130.               80h EMM software error
  131.           81h EMM hardware error
  132.           83h invalid handle
  133.  
  134.     FAT-DOS 1.0            EMMVER            PAGE K-4
  135.  
  136.  
  137.     EMMVER - Get the EMM version number.
  138.  
  139.     integer*2 major,minor
  140.     call EMMver(major,minor)
  141.     
  142.     call with:
  143.     nothing
  144.     
  145.     returns:
  146.     Major    = Integer part of version number, i.e. 3 or 4.
  147.     Minor    = Fractional part of version number, i.e 2 or 0.
  148.  
  149.  
  150.  
  151.     EMMGNH - Get the number of active EMM Handles.
  152.    
  153.     integer*2 Nhandle,Ier
  154.     call EMMgnh(Nhandle,Ier)
  155.     
  156.     call with:
  157.     nothing.
  158.     
  159.     returns:
  160.     Nhandle    = Number of active EMM handles.
  161.     Ier    = Error code
  162.               0   normal return, function worked.
  163.           80h EMM software error.
  164.           81h EMM hardware error.
  165.